﻿@model RegisterAccountBM
@{
    ViewData["Title"] = "注册";
}

    <div id="login_or_register_container">
        <form class="pure-form pure-form-aligned" asp-action="DoRegister" asp-controller="Account">
            <fieldset>
                <div class="pure-control-group">
                    <label asp-for="Email"></label>
                    <input asp-for="Email" maxlength="55" type="email" placeholder="joey@163.com">
                    <span asp-validation-for="Email"></span>
                </div>

                <div class="pure-control-group">
                    <label asp-for="Name"></label>
                    <input asp-for="Name" type="text" maxlength="10" placeholder="皮皮是只母喵">
                    <span asp-validation-for="Name"></span>
                </div>

                <div class="pure-control-group">
                    <label asp-for="Gender"></label>
                    <input asp-for="Gender" type="radio" value="男">男 &ensp;
                    <input asp-for="Gender" type="radio" value="女">女
                    <span asp-validation-for="Gender"></span>
                </div>

                <div class="pure-control-group">
                    <label asp-for="Password"></label>
                    <input asp-for="Password" maxlength="30" type="password" placeholder="123QWE!%^">
                    <span asp-validation-for="Password"></span>
                </div>

                <div class="pure-control-group">
                    <label asp-for="ConfirmPassword"></label>
                    <input asp-for="ConfirmPassword" type="password" placeholder="123QWE!%^">
                    <span asp-validation-for="ConfirmPassword"></span>
                </div>

                <div class="pure-controls">
                    <button type="submit" class="pure-button pure-button-primary">注册</button>
                </div>
            </fieldset>
        </form>
        <div asp-validation-summary="All"></div>
        <div class="login_or_register_link">已有账号？点击<a asp-action="Login" asp-controller="Account">登录</a></div>
        <div class="cleanfloat"></div>
    </div>

@section js{
    @await Html.PartialAsync("Partials/_ValidationScriptsPartial")
}